<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <%@include file="style.jsp" %>
    <%@include file="script.jsp" %>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/orderlang/distributor/css/accounts_receivable.css"/>
    <title>应收账款</title>
</head>
<body onselectstart="return false">
<div id="container_1" style="height:100%">
    <div style="position: relative">
        <%@include file="header.jsp" %>
    </div>
    <div id="content" class="clearfix">
        <%@include file="left_menu.jsp" %>
        <!--内容部分-->
        <div class="right-content" style="margin:75px 20px 0 213px;">
            <p class="brand">
                <a>财务</a>><a class="now">应收账款</a>
            </p>
            <div class="content">
                <div class="top-block">
                    <div class="search-box fl">
                        <input type="text" id="orderCode" placeholder="请输入订单号/客户"/>
                        <span></span>
                    </div>
                    <div class="date fl">
                        <input id="datePicker" type="text" readyonly placeholder="请选择开始日期" onchange="changes()"/>
                    </div>
                    <div class="state" data-state="${paymentState}">
                        <ul id="isRelease" class="clearfix">
                            <li class='active' data-id=''>全部订单</li>
                            <li data-id='0'>未付款</li>
                            <li data-id='1'>已付款待审核</li>
                            <li data-id='2'>已付款</li>
                        </ul>
                    </div>
                </div>
                <div class="money-block clearfix">
                    <div class="block-item total">
                        <p>订单总金额</p>
                        <p class="money"></p>
                    </div>
                    <div class="block-item yishou">
                        <p>已收金额</p>
                        <p class="money"></p>
                    </div>
                    <div class="block-item queren">
                        <p>待确认</p>
                        <p class="money"></p>
                    </div>
                    <div class="block-item daishou">
                        <p>待收金额</p>
                        <p class="money"></p>
                    </div>
                </div>
                <div class="product-list">
                    <table>
                        <thead>
                        <tr>
                            <td></td>
                            <td>客户</td>
                            <td>订单号</td>
                            <td>订单总金额</td>
                            <td>已收金额</td>
                            <td>待确认</td>
                            <td>待收金额</td>
                            <td>付款状态</td>
                        </tr>
                        </thead>
                        <tbody class='order-list-tbody'>
                        <%-- 
						<c:forEach items="${orderInfoList}" var="iR">
                        <tr>
                            <td>${iR.id}</td>
                            <td>${iR.name}</td>
                            <td>DH${iR.orderCode}</td>
                            <td>￥${iR.amount}</td>
                            <td>￥${iR.receivedAmount}</td>
                            <td>￥${iR.tbcAmount}</td>
                            <td>￥${iR.amount-iR.receivedAmount-iR.tbcAmount}</td>
                            <td class="pay-state">
                                <p>${iR.paymentState}</p>
                            </td>
                            <td>
                                <button class="detail">查看</button>
                                <button class="add-record">添加收款记录</button>
                            </td>
                        </tr>
						</c:forEach> --%>
                        </tbody>
                    </table>
                    <!-- -----分页----- -->
                    <div class="quotes" style="margin-top: 50px"> 
                </div>
            </div>
        </div>
        <script src="${pageContext.request.contextPath}/static/orderlang/distributor/js/accounts_receivable.js"></script>
        <!--内容部分结束-->
    </div>
</div>

</body>
</html>